package com.practice.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.practice.config.CustomTypeHandler;
import lombok.*;

import java.io.Serializable;

/**
 * <p>
 * 用户管理表
 * </p>
 *
 * @author xieqc
 * @since 2023-10-19
 */
@EqualsAndHashCode(callSuper = true)
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
@TableName(value = "s_user",autoResultMap = true)
//@ApiModel(value = "User对象", description = "用户管理表")
public class User extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(type = IdType.ASSIGN_ID)
    private Long id;

    // @ApiModelProperty("编码")
    private String no;

    //@ApiModelProperty("名称")
    private String userName;

    //@ApiModelProperty("昵称")
    private String nickName;

    //@ApiModelProperty("密码")
    @TableField(typeHandler = CustomTypeHandler.class)
    private String passWord;

    //@ApiModelProperty("职位")
    private String position;

    //@ApiModelProperty("手机")
    private String phNum;

    //@ApiModelProperty("身份证")
    private String idCard;

    private Boolean active;

}
